lib/deltas: Move variant read helper into the deltas code
authorColin Walters <walters@verbum.org>
Thu, 5 Oct 2017 15:14:17 +0000 (11:14 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 5 Oct 2017 15:41:00 +0000 (15:41 +0000)
commitfc33ae018dccbcab633b69474db0811987355212
treeb1a08152d553cc48e525000c6601ef4729dedb30
parenta903f96673ec8c42c7ccc60018a56b09539ad8f9
lib/deltas: Move variant read helper into the deltas code

What the deltas code is doing is weird/unfortunate.  The name
`ot_variant_read()` conflicts too much with `ot_variant_read_fd()`.
Since nothing else uses it, move it into the deltas code.

Closes: #1254
Approved by: jlebon
src/libostree/ostree-repo-static-delta-compilation.c
src/libotutil/ot-variant-utils.c
src/libotutil/ot-variant-utils.h